use basic_sort::*;

#[test]
fn bubble_sort_test() {
    let mut vec = vec![2, 4, 3, 1, 6, 5];
    bubble_sort(&mut vec);
    assert_eq!(vec, vec![1, 2, 3, 4, 5, 6]);
}

#[test]
fn selection_sort_test() {
    let mut vec = vec![2, 4, 3, 1, 6, 5];
    selection_sort(&mut vec);
    assert_eq!(vec, vec![1, 2, 3, 4, 5, 6]);
}

#[test]
fn unknown_sort_test() {
    let mut vec = vec![2, 4, 3, 1, 6, 5];
    unknown_sort(&mut vec);
    assert_eq!(vec, vec![1, 2, 3, 4, 5, 6]);
}

#[test]
fn quick_sort_test() {
    let mut vec = vec![2, 4, 3, 1, 6, 5];
    quick_sort(&mut vec);
    assert_eq!(vec, vec![1, 2, 3, 4, 5, 6]);
}